package com.wrupple.muba.catalogs.client.widgets.editors.composite.delegates;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.inject.Provider;
import com.wrupple.muba.catalogs.client.cms.service.CatalogManagementSystem;
import com.wrupple.muba.catalogs.client.widgets.editors.composite.CompositeCatalogEditor;
import com.wrupple.muba.common.domain.FilterData;
import com.wrupple.muba.common.shared.State.StorageManager;
import com.wrupple.vegetate.domain.FieldDescriptor;


/**
 * 
 * Add: select
 * Remove: unlink ¿remove?
 * 
 * @author japi
 *
 */
public class OneToOneRelationshipDelegate  extends OneToManyRelationshipDelegate{

	public OneToOneRelationshipDelegate(
			CompositeCatalogEditor<? extends JavaScriptObject> editor,
			FieldDescriptor descriptor, CatalogManagementSystem cms,
			StorageManager sm, Provider<FilterData> addFilterProvider,
			String permanentDelete) {
		super(editor, descriptor, cms, sm, addFilterProvider, permanentDelete);
		super.limitToOne=true;
	}

}
